from django.contrib import admin

from users.models import User, Address


# Register your models here.
@admin.register(User)
class AreasAdmin(admin.ModelAdmin):
    # 显示列表
    list_display = ['id', 'username', 'mobile', 'email', 'default_address']


@admin.register(Address)
class AreasAdmin(admin.ModelAdmin):
    # 显示列表
    list_display = ['id', 'user', 'title', 'receiver', 'province', 'city', 'district', 'place', 'mobile', 'tel',
                    'email', 'is_deleted']
